<?php
/*
@version        2010-06-19 16:00
@package        DVDWeb
@license        GNU/GPL3, see LICENSE.php
@author         Gustavo, Rafael, Sandro
*/
$data=date("Y-m-d");
?>
<script type="text/javascript">
	function confirma() {
	   if (document.forms[0].senha1.value != document.forms[0].senha2.value) alert('Senhas não conferem');
	}

</script>

<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
   <title>DVDWeb - Novo Usuario<title>
</head>
<body>
<p>Novo Usuário</p>
<form action="criaUsuario.php" method="post">

        <table border="1" >
                <tr>
                   <td>Primeiro nome:</td>
                   <td width="148"><input type="text" name="pnome" size="50" maxlength="50"></td>
                </tr>
                
                <tr>
                   <td>Último nome:</b></td>
                   <td width="148"><input type="text" name="snome" size="50" maxlength="50"></td>
                </tr>
		
		<tr>
                   <td>Cartao de credito:</b></td>
                   <td width="148"><input type="text" name="cartao" size="50" maxlength="50"></td>
                </tr>
			
		<tr>
                   <td>Nome de usuário:</b></td>
                   <td><input type="text" name="username" size="20" maxlength="20"></td>
                </tr>

		<tr>
                   <td>Senha:</b></td>
                   <td width="148"><input type="password" name="senha1" size="20" maxlength="20"></td>
                </tr>
		<tr>
                   <td>Repetir a senha:</b></td>
                  <td width="148"><input type="password" name="senha2" size="20" maxlength="20"></td>
                </tr>
		
		<input type=hidden name="data" value="<?php echo $data;?>">
		<input type=hidden name="tipo" value=0>
		
		<td></td>
		<td><input type="submit" style="cursor:pointer" onClick="confirma();" value="Criar >>"></td>
                </tr>
        </table>
</form>
